package org.exez.modules.quartz.job;

import lombok.extern.slf4j.Slf4j;
import org.exez.modules.visitor.service.IWhiteListService;
import org.exez.modules.visitor.service.SjyService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 正在白名单传输
 *
 * @Author Scott
 */
@Slf4j
public class WhiteListSaveOrUpdateJob implements Job {

	@Autowired
	private IWhiteListService whiteListService;

	@Override
	public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

		log.info("=============公安pay开始传输======================");

		whiteListService.pushSaveOrUpdate();

		log.info("=============公安pay结束传输======================");
	}
}
